<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Extra Tools</h1>
    <h2>
        Bit.ly links</h2>
    <form id='frm_shorten_url' method="post" action="/sugar/bitly">
    <div>
        <fieldset>
            <p>
                <label for="longUrl">
                    Long Url:</label>
                <%=Html.TextBox("longUrl","http://www.yonkly.com") %>
                <%= Html.ValidationMessage("longUrl") %>
            </p>
            <p>
                <label for="shortUrl">
                    <%=ViewData["shorturl"] %></label></p>
            <p>
                <input type="submit" value="Shorten Url" class="button_rollover my_button ui-state-default ui-corner-all" />
            </p>
        </fieldset>
    </div>
    <h2>
        Flash Message</h2>
    <p>
        <a class="button_rollover my_button ui-state-default ui-corner-all" href='#' onclick='showflash("This is a flash message");'>
            Show Flash</a></p>
    </form>
</asp:Content>
